/*
 * @Author: ૮₍ ˙О˙₎ა
 * @Date: 2023-04-26 11:47:51
 */
module.exports=function(req,res,next){
    if(req.session.userName){
        next()
    }else{
        res.redirect('/login');
    }
}